package homeworkplus.day02;

/**
 * @Classname: Test04
 * @Author: bromide
 * @CreateTime: 2022/3/30--8:49
 * @Version: V1.0
 * @Desciption: 将字符串"123abc456def789ghi"中的英文部分替换为"#char#"
 */
public class Test04 {
    public static void main(String[] args) {
        String s = "123abc456def789ghi";
        s = s.replaceAll("[a-zA-Z]+", "#char#");
        System.out.println(s);
    }
}
